﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x020002E9 RID: 745
	public class TGroupByItemList : TParseTreeNodeList
	{
		// Token: 0x06001A3C RID: 6716 RVA: 0x0032DB28 File Offset: 0x0032BD28
		public virtual void removeGroupByItem(int index)
		{
			if (index >= 0 && index < base.size())
			{
				this.getGroupByItem(index).setChanged();
				base.removeElementAt(index);
			}
		}

		// Token: 0x06001A3D RID: 6717 RVA: 0x0032DB4A File Offset: 0x0032BD4A
		public virtual void addGroupByItem(TGroupByItem groupByItem)
		{
			base.addElement(groupByItem);
		}

		// Token: 0x06001A3E RID: 6718 RVA: 0x0032DB53 File Offset: 0x0032BD53
		public virtual TGroupByItem getGroupByItem(int position)
		{
			if (position < base.size())
			{
				return (TGroupByItem)this.elementAt(position);
			}
			return null;
		}

		// Token: 0x06001A3F RID: 6719 RVA: 0x0032DB6C File Offset: 0x0032BD6C
		internal override void addParseTreeNode(object arg1)
		{
			this.addGroupByItem((TGroupByItem)arg1);
		}

		// Token: 0x06001A40 RID: 6720 RVA: 0x0032DB7A File Offset: 0x0032BD7A
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001A41 RID: 6721 RVA: 0x0032DB8C File Offset: 0x0032BD8C
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			for (int i = 0; i < base.size(); i++)
			{
				this.getGroupByItem(i).acceptChildren(v);
			}
			v.postVisit(this);
		}
	}
}
